<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">
	
	var a = 'lllllooooovvvvveeee';
	//love; no replace
	l = a.charAt(1);
	o = a.charAt(5)
	v = a.charAt(a.indexOf('v'));
	e = a.charAt(15);

	alert(l+o+v+e);

</script>
</body>
</html>